package business.datacenter.impl;

import business.datacenter.CourtInfoService;
import sybase.domain.CourtInfo;
import sybase.domain.CourtInfoCriteria;
import sybase.mapper.CourtInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "courtInfoService")
public class CourtInfoServiceImpl implements CourtInfoService {
    @Autowired
    CourtInfoMapper courtInfoMapper;
    @Override
    public List<CourtInfo> getCourtInfo() {
        CourtInfoCriteria criteria = new CourtInfoCriteria();
        criteria.createCriteria().getAllCriteria();
        return courtInfoMapper.selectByExample(criteria);
    }
}
